package com.xyauto.theme.fragment

import android.view.ViewGroup
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.xyauto.theme.R
import com.xyauto.theme.utils.AutoUtils
import com.xyauto.theme.utils.setImageUrl

@Deprecated("作废")
class DetailIconAdapter(layoutId: Int) : BaseQuickAdapter<String, BaseViewHolder>(layoutId) {

    override fun onCreateDefViewHolder(parent: ViewGroup, viewType: Int): BaseViewHolder {
        return super.onCreateDefViewHolder(parent, viewType).apply {
            AutoUtils.auto(itemView)
        }
    }

    override fun convert(holder: BaseViewHolder, item: String) {
        holder.setImageUrl(R.id.m_item_icon, item)
    }
}